import { createRouter, createWebHashHistory, createWebHistory, RouteRecordRaw } from "vue-router";
import Login from "./../page/Login.vue";
import NotFound from "../page/NotFound.vue";
import Nav from "./../page/NavPage.vue"
import Home from "./../page/organization/Home.vue"
export const router = createRouter({
    history: createWebHistory(),
    routes: [
        { path: "/", redirect: "/login" },
        { path: "/login", component: Login },
        { path: "/notFound", component: NotFound },
        {
            path: "/nav", component: Nav,
            children: [
                { path: "", component: Home  },
                { path: "carsoules",component: () => import("./../page/organization/Swiper.vue")  },
                { path: "users", component: () => import("./../page/organization/User.vue") },
                { path: "roles", component: () => import("./../page/organization/Roles.vue") },
                { path: "forms", component: () => import("./../page/organization/Form.vue") },
                { path: "rangesList", component: () => import("./../page/range/RangesList.vue") },
                { path: "rangesform", component: () => import("../page/range/Rangesform.vue") }
            ]
        }
    ]
})

